import com.mysql.cj.jdbc.MysqlDataSource;

import javax.sql.DataSource;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class demon1 {
    public static void main(String[] args) throws SQLException {
        DataSource dataSource=new MysqlDataSource();
        ((MysqlDataSource)dataSource).setPassword("123qwe...");
        ((MysqlDataSource)dataSource).setUser("root");
        ((MysqlDataSource)dataSource).setUrl("jdbc:mysql:" +
                "//127.0.0.1:3306/bit32mall?serverTimezone=UTC");
        Connection connection=dataSource.getConnection();
        String sql="";
        PreparedStatement preparedStatement=connection.prepareStatement(sql);
        ResultSet set=preparedStatement.executeQuery();


    }
}
